import requestService from "../service/request";

const Api = {
  fanslist: "/app/doupiaopiao/commission/fansList",
  orderList: "/app/doupiaopiao/commission/fansOrderList",
  withdraw: "/app/doupiaopiao/commission/withdraw",
  withHistory: "/app/doupiaopiao/commission/withHistory",
  withData: "/app/doupiaopiao/commission/withData",
};

//获取粉丝列表
export function list(data) {
  return requestService(Api.fanslist, {
    type: "get",
    data,
  });
}

//获取粉丝订单列表
export function orderList(data) {
  return requestService(Api.orderList, {
    type: "get",
    data,
  });
}

//用户提现
export function withDraw(data) {
  return requestService(Api.withdraw, {
    type: "get",
    data,
  });
}

//获取用户提现的列表
export function withdrawList(data) {
  return requestService(Api.withHistory, {
    type: "get",
    data,
  });
}
//获取用户的一些佣金信息
export function withData(data) {
  return requestService(Api.withData, {
    type: "get",
    data,
  });
}
